﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class JumperTrigger : MonoBehaviour
{
    public float value = 1;
    Animator animator;
    private void Awake()
    {
        animator = GetComponent<Animator>();
    }
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.tag=="Player")
        {
            Debug.Log("Jumper");
            var rb= collision.GetComponent<Rigidbody2D>();
            rb.AddForce(new Vector2(0,value));

        }
    }
}
